﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ChoViet.Site.ViewModels.VideoDetailViewModels>" %>
<%@ Import Namespace="ChoViet.Lib.Helpers" %>
<div class="otheritem">
    <div class="title">
        <div class="o111"><%=ViewData["Title"]%></div>
        <div class="line"></div>
    </div>
    <div class="o2">
        <ul>
            <%foreach (var item in Model.Videos)
              { %>
            <li><a href="/video/details/<%=item.ID %>/<%=Html.ToUrlFriendly(item.Name)%>"><%=Html.Encode(item.Name) %></a>
                <span class="date date-first">(<%=item.AddDate != null ? (item.AddDate.Value.ToString("hh:mm") + "&nbsp;|&nbsp;" + item.AddDate.Value.ToString("dd/MM/yyyy")) : string.Empty%>)</span>
            </li>
            <%} %>
        </ul>
    </div>
</div>
